package com.taobao.ic.ticket.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.taobao.ic.ticket.domain.DataDictDO;
import com.taobao.ic.ticket.exception.BizException;
import com.taobao.ic.ticket.manager.DataDictManager;
import com.taobao.ic.ticket.result.ResultDO;
import com.taobao.ic.ticket.service.GeneralService;

/**
 * 
 * @author tianshi@taobao.com
 *
 */
public class GeneralServiceImpl implements GeneralService {
	
	@Autowired
	private DataDictManager dataDictManager;	
	@Override
	public ResultDO<List<DataDictDO>> list() throws BizException {
		ResultDO<List<DataDictDO>> result = new ResultDO<List<DataDictDO>>();
		List<DataDictDO> list = dataDictManager.list();
		result.setModel(list);
		return result;
	}

}
